import Vue from 'vue'
import Router from 'vue-router'
import Home from "../components/Home";
import Couses from "../components/Couses";
import Detail from "../components/Detail";
import Cart from "../components/Cart";
import Login from "../components/Login";
Vue.use(Router);



export default new Router({
  mode:'history',
  routes: [
       {
      path: '/',
      name: 'Home',
      component: Home,
    },
    {
      path: '/home',
      name: 'Home',
      component: Home,
    },
    {
      path:'/free-course',
      name:'Couses',
      component:Couses,
    },
     {
      path:'/detail',
      name:'Detail',
      component:Detail,
    },
     {
      path:'/cart',
      name:'Cart',
      component:Cart,
    },
    {
      path:'/login',
      name:'Login',
      component:Login,
    },



  ]
})
